import { IsString } from 'class-validator';
/* 
  当参数验证不通过 validator时，会自动报400错误
*/
export class CreateArticlesDto {
  @IsString()
  readonly title: string;

  @IsString()
  readonly desc: string;

  @IsString()
  readonly content: string;
}
